package com.zhengsr.corelib.net.intecepter;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Response;

/**
 * Created by zhengshaorui
 * time: 2018/10/7
 */

public abstract class BaseInteceptor implements Interceptor {
    protected static final String COOKIE_PREF = "cookies_prefs";
    @Override
    public Response intercept(Chain chain) throws IOException {
        return response(chain);
    }

    abstract protected Response response(Chain chain) throws IOException;
}
